= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "login-box" }) do |f|
  %h3.page-title Sign Up
  %br
  = devise_error_messages!
  %div
    = f.text_field :name, class: "text top", placeholder: "Name", required: true
  %div
    = f.text_field :username, class: "text middle", placeholder: "Username", required: true
  %div
    = f.email_field :email, class: "text middle", placeholder: "Email", required: true
  %div
    = f.password_field :password, class: "text middle", placeholder: "Password", required: true
  %div
    = f.password_field :password_confirmation, class: "text bottom", placeholder: "Confirm password", required: true
  %div
    = f.submit "Sign up", class: "btn-create btn"
  %hr
  = link_to "Sign in", new_session_path(resource_name)
  = link_to "Forgot your password?", new_password_path(resource_name), class: "pull-right"
